import { request } from 'umi';

export async function login(data: { phone: string; password: string }) {
  return request(`/api/user/login`, {
    data: data,
    params: data,
    method: 'post',
  });
}
